<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>

<input type="text" id="txt">
<button onclick="callArtTs()">调用原生方法</button>
<button onclick="callArtTs2()">调用原生方法</button>

<script>
  function setValue(){
    document.getElementById("txt").value="你好";
  }
    function setVal(txt){
    document.getElementById("txt").value=txt;
  }
  function callArtTs(){
      let txt= artTsObject.getData();//调用原生代码
     document.getElementById("txt").value=txt;
  }
    function callArtTs2(){
      let txt= artTsObject2.getMsg();//调用原生代码
     document.getElementById("txt").value=txt;
  }
</script>
</body>
</html>